var search_init = false;

function search_start()
{
	if (search_init) { return true; }
	
	$('#search').attr('value','');
	$('#search').removeClass('search_pre');
	$('#search').addClass('search_post');
	
	search_init = true;
}

function search_stop()
{
	if ($('#search').attr('value') == '')
	{	
		$('#search').attr('value','search'); 
		$('#search').removeClass('search_post');
		$('#search').addClass('search_pre');
		search_init = false;
	}
	else
	{
		search_init = true;
	}
}